﻿
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html >
<html>
	<head>
		<title>哲学研究云数据系统</title>
		<t:base type="jquery,easyui,tools,DatePicker"></t:base>
		<link rel="shortcut icon" href="images/favicon.ico">
		<link href="plug-in/base/nms_base.css" rel="stylesheet" type="text/css">
		<style type="text/css">
a {
	color: Black;
	text-decoration: none;
}

a:hover {
	color: black;
	text-decoration: none;
}
</style>
		<SCRIPT type="text/javascript">
	$(function() {
		$('#layout_east_calendar').calendar({
			fit : true,
			current : new Date(),
			border : false,
			onSelect : function(date) {
				$(this).calendar('moveTo', new Date());
			}
		});
		
		getHasNews();
	});
	
	function openMess(){
		addTab('消息管理','messageController.do?allmessage');
	}
	
	function getHasNews(){
		$.ajax( {    
		    url:'outController.do?hasnew',// 跳转到 action   
		    type:'post',    
		    cache:false,    
		    dataType:'json',    
		    success:function(data){    
		    	if(parseInt(data.msg)>=1){
		    		$.messager.show({
						title : '提示消息',
						msg : "<a href='#' style='color:blue;' onclick='openMess();'>您有"+data.msg+"条新的消息！</a>",
						timeout : 8000,
						showType : 'slide'
					});
		    	}else{
		    	}
		    },    
		    error : function(){    
		    	
		    }    
		}); 
	}
	
</SCRIPT>
	</head>
	<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
		<!-- 顶部-->
		<div region="north" border="false"
			style="BACKGROUND: #A8D7FF; height: 57px; padding: 1px; overflow: hidden;">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td align="left" style="vertical-align: text-bottom;padding-top: 5px;" rowspan="2" >
						<img src="plug-in/login/images/toplogo-main.png" height="50">
					</td>
					<td align="right" nowrap>
						<table>
							<tr>
								<td valign="top" height="50">
									<span style="color: #CC33FF">当前用户:</span><span
										style="color: #666633">(${userName}) <span
										style="color: #CC33FF">职务</span>:<span style="color: #666633">${roleName}</span>
									&nbsp;&nbsp;&nbsp;&nbsp;
									
								</td>
							</tr>
							<tr>
								<td>
									<div style="position: absolute; right: 0px; bottom: 0px;">
										<a href="javascript:void(0);" class="easyui-menubutton"
											menu="#layout_north_kzmbMenu" iconCls="icon-help">控制面板</a>
										<a
											href="javascript:void(0);" class="easyui-menubutton" 
											menu="#layout_north_zxMenu" iconCls="icon-back">注销</a>
									</div>
									<div id="layout_north_kzmbMenu"
										style="width: 100px; display: none;">
										<!-- 
										<div onclick="openwindow('用户信息','userController.do?userinfo')">
											个人信息
										</div>
										 -->
										<div class="menu-sep"></div>
										 
										<div onclick="add('修改密码','userController.do?changepassword')">
											修改密码
										</div>
									</div>
									<div id="layout_north_zxMenu"
										style="width: 100px; display: none;">
										<div class="menu-sep"></div>
										<div
											onclick="exit('loginController.do?logout','确定退出该系统吗 ?',1);">
											退出系统
										</div>
									</div>
								</td>
							</tr>
						</table>
					</td>
					<td align="right">
						&nbsp;&nbsp;&nbsp;
					</td>
				</tr>
			</table>
		</div>
		<c:if test="${roleCode!='xuesheng'}">
		<!-- 左侧-->
			<div region="west" split="true" href="loginController.do?left" 
				title="导航菜单" style="width: 150px; padding: 1px;" >
	
			</div>
		</c:if>
		<c:if test="${roleCode=='xuesheng'}">
		<!-- 左侧-->
			<div region="west" split="true" href="loginController.do?left" 
				title="导航菜单" style="width: 150px; padding: 1px;" >
	
			</div>
		</c:if>
		
		<!-- 中间-->
		<div id="mainPanle" region="center" style="overflow: hidden;">
			<div id="maintabs" class="easyui-tabs" fit="true" border="false">
				<c:if test="${roleCode=='xuesheng'}">
					<div title="首  页  " style="overflow:hidden" href="studentController.do?studentindex" >
					</div>
				</c:if>
				<c:if test="${map=='1'}">
					<div class="easyui-tab" title="地图"
						style="padding: 1px; overflow: hidden;">
						<iframe name="myMap" id="myMap" scrolling="no" frameborder="0"
							src="mapController.do?map" style="width: 100%; height: 99.5%;"></iframe>
					</div>
				</c:if>
			</div>
		</div>
		
		<!-- 底部 -->
		<div region="south" border="false"
			style="height: 25px; overflow: hidden;">
			<div align="center" style="color: #CC99FF; padding-top: 2px">
				<!-- 
				&copy; 版权所有
				<span class="tip"><a href="#" title="信息分析"></a>
					(推荐谷歌浏览器，获得更快响应速度) 技术支持:<a href="#" title=""></a>
				</span>
				 -->
			</div>
		</div>
		<div id="mm" class="easyui-menu" style="width: 150px;">

			<div id="mm-tabclose">
				关闭
			</div>
			<div id="mm-tabcloseall">
				全部关闭
			</div>
			<div id="mm-tabcloseother">
				除此之外全部关闭
			</div>
			<div class="menu-sep"></div>
			<div id="mm-tabcloseright">
				当前页右侧全部关闭
			</div>
			<div id="mm-tabcloseleft">
				当前页左侧全部关闭
			</div>

		</div>

	</body>
</html>